#include <iostream>
#include <vector>
#include <string>
using namespace std;

int main(){

long long kolvo = 0, a = 0, b = 0,c = 0, f = 0, V = 0, g = 0, h = 0;
string s2 = "";
string dlina = "";
string s = "";
cout << "Введите строку: ";
getline (cin , s);
s = s + ' ';
for (int i=0; i<s.size(); i++){
  if (s[i] != ' '){
    s2 += s[i];
    if (s[i] >= 'a' and s[i] <= 'b' or s[i] >= 'A' and s[i] <= 'b'){
       b+= 1;
    }
    if (s[i] == '-' and h == 0){
      g += 1;
      h += 1;
    }
  }
  else{
    kolvo += 1;
    if (s2[0] >= 'A' and s2[0] <= 'b'){
      a += 1;
    }
    if (b != 0){
      c += 1;
    }
    if (s2.size() <= 3){
      f += 1;
    }
    if (s2.size() > dlina.size()){
      dlina = s2;
    }
    s2 = "";
    b = 0;
    h = 0;
  }
  
}
if (kolvo <= 1){
  cout << "мало";
}
else{
  cout << "количество " << kolvo << endl;
  cout << "заглавные " << a << endl;
  cout << "латинские " << c << endl;
  cout << "<3 "<< f << endl;
  cout << "дефиз '-' " << g << endl;
  cout << "длинное слово - "<< dlina << endl;
  cout << "кол-во букв "<< dlina.size();
}


}